import { Controller, Get } from '@nestjs/common';
import { AppService } from '../../../../app.service';

// 公共模块中的服务
import { ServiceService } from '../../../share/service/service.service';

@Controller('news')
export class NewsController {
  constructor(
    private readonly appService: AppService,
    private readonly serviceService: ServiceService,
  ) {}
  @Get()
  index() {
    console.log(this.appService.getConfig());
    console.log(this.serviceService.getData());

    return '我是前台的news页面';
  }
}
